class HtmlParser {
  extractTextFromHtml(htmlString: string): string {
    const div = document.createElement("div");
    div.innerHTML = htmlString.trim();
    const text = div.textContent || div.innerText;
    return text;
  }
}

export const htmlParser = new HtmlParser();
